home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 January / enter-2004-01.iso / files / maxima-5.9.0.exe / {app} / share / maxima / 5.9.0 / demo / newfac.dem < prev    next >
Encoding:
Text File  |  2003-02-09  |  2.4 KB  |  66 lines

  1. /* ========================================================== */
  2. /*  file: newfac.dem  */
  3. /* If newfac:true (original MIT), we have the message: NMULTFACT undefined */
  4. /* if newfac:false, FACTOR seems to loop at the instruction commentified */
  5. /*  <----------  loop! loop!  */
  6.  
  7. SHOWTIME:true;
  8. NEWFAC:false;
  9. R:RAT((X^3*(Y+Z)+Z-11)*(X^2*(Z^2+Y^2)+Y+90));
  10. FACTOR(R);
  11. KILL(LABELS)$
  12. R:RAT((Z+X*Y+10)*(Y+X*Z+30)*(X+Y*Z+20));
  13. FACTOR(R);
  14. KILL(LABELS)$
  15. R:RAT((Y*Z^3+X*Y*Z+Y^2+X^3)*(X*(Z^4+1)+Z+X^3*Y^2));
  16. FACTOR(R);
  17. KILL(LABELS)$
  18. R:RAT((z^2+y^4*x^3)*(y^4*z^2+x^2*z+5)
  19. *(Z^2+X*Y^3)*(Z^2-X^3*Y+3));
  20. FACTOR(R);
  21. KILL(LABELS)$
  22. R:RAT((Z^2*(X+Y^2)+3*U*X*Y*Z+19)*(z^2+y^4*x^3+U^2)*(U^2*y^4*z^2+x^2*z+5));
  23. FACTOR(R);
  24. KILL(LABELS)$
  25. (x^2*y^3-x^5*z^3+y*z)*(z^3*w^4-x*y^2*z^2-x^3*y*w^2-x^5*Y^6*w^4)*(z^6*w^4-x^4*y^2+y^2*z^3-x^3*y*w^3-x^2*y^2*z^2*w^2+x^5*z);
  26. RAT(%,W)$FACTOR(%);
  27. KILL(LABELS)$
  28. (Z+Y+X-3)**3*(Z+Y+X-2)**2;RAT(%);
  29. FACTOR(%);
  30. KILL(LABELS)$
  31. (29*X^12*Y^12*Z^3*W^4+3*Y^20*W^15+21*X^3*Z^2-15*Y^2*Z^16)*(X^21-Y^14-Z^31+W^2+Y^18+X^2*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